package EX3;

import java.io.*;

/*
InputStreamReader类 和 OutputStreamWriter类
转换流：字节流转换为字符流进行输入/输出
 */
public class demo5 {
    public static void main(String[] args) throws IOException {
        File f=new File("C:/filea/a.txt");
        InputStreamReader isr=new InputStreamReader(new FileInputStream(f));
        int n;
        while((n=isr.read())!=-1){
            System.out.println((char)n);
        }

    }
}
